package com.foreknow.practise;


public class Point {
    int x;
    int y;
    public Point(){

    }
    public Point(int x0,int y0){
        this.x=x0;
        this.y=y0;
    }
    public void movePoint(int dx,int dy){
        this.x+=dx;
        this.y+=dy;
        System.out.println("x:"+dx+"y:"+dy);
    }
    public static void main(String[] args) {
        Point p1 = new Point();
        Point p2 = new Point(1,2);
        p1.movePoint(1,3);
        p2.movePoint(3,4);
    }
}
